package router

import (
	"Founction/controller"
	"github.com/gin-gonic/gin"
)

func InitFileRouter(Router *gin.RouterGroup) {
	fileRouter := Router.Group("file")
	{
		// 上传文件
		fileRouter.POST("upload", controller.UploadFile)
		// 下载文件
		fileRouter.GET("download", controller.DownloadFile)
		// 获取所有文件
		fileRouter.GET("getAllFile", controller.GetAllFile)
		// 删除文件
		fileRouter.DELETE("deleteFile", controller.DeleteFile)
	}
}
